// HALCON/Qt pattern matching and measure example
//
// (c) 2004-2022 MVTec Software GmbH

// main.cpp : Initialization of the Qt application
//

#include "mainwindow.h"
#include <QApplication>

#ifdef Q_WS_X11
#  include <X11/Xlib.h>
#endif

int main(int argc, char** argv)
{
#ifdef Q_WS_X11
  XInitThreads();
#endif
  QApplication application(argc, argv);

  try
  {
    MainWindow w;
    w.setWindowTitle("QImageView");
    w.resize(QSize(1440, 900));  
   // w.setStyleSheet(QString("Matching{background:%1}").arg("rgb(0,0,0)"));
    w.show();
    return application.exec();
  }
  catch (HalconCpp::HException& exception)
  {
    fprintf(stderr, "Error #%u: %s\n", exception.ErrorCode(),
            exception.ErrorMessage().TextA());
    exit(-1);
  }

  return 0;
}
